package com.lms.netty.rpc.consumer;

import com.lms.netty.rpc.common.HelloService;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-06-19 17:33
 * @Description:
 */
public class RpcClientBootstrap {
    public static final String providerName = "HelloService#hello#";

    public static void main(String[] args) {
        RpcNettyClient rpcNettyClient = new RpcNettyClient();

        HelloService service= (HelloService) rpcNettyClient.getBean(HelloService.class, providerName);
        String result = service.hello("你好，RPC");
        System.out.println("调用的结果："+result);

    }
}
